#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<vector>
using namespace std;

int main()
{
	vector<int> vec1(5, 10);
	vector<int>::iterator it = vec1.begin();
	it = vec1.insert(it, 100);
	cout << "vec1:";
	for (it = vec1.begin(); it < vec1.end(); it++)
	{
		cout << *it << " ";
	}
	cout << endl;

	vec1.insert(it, 2, 1000);
	it = vec1.begin();
	cout << "vec1:";
	for (it = vec1.begin(); it < vec1.end(); it++)
	{
		cout << *it << " ";
	}
	cout << endl;

	vector<int> vec2(2, 10000);
	
	it = vec1.begin();
	vec1.insert(it + 2, vec2.begin(), vec2.end());
	cout << "vec1:";
	for (it = vec1.begin(); it < vec1.end(); it++)
	{
		cout << *it << " ";
	}
	cout << endl;

	return 0;
}